#pragma once

#include "msgObj.hpp"

namespace Protocol {
class EmptyMsgObject : public MsgObject {
public:
    template <typename... Args>
    EmptyMsgObject(Args &&... args) {}

public:
    virtual bool parse(const std::string &topic, const std::string &payload) override {
        std::cerr << "not suppost topic : " << topic << std::endl;
        std::cerr << "not suppost payload : " << payload << std::endl;
        return false;
    }
    virtual MsgObject &action(void) override { return *this; }
    virtual bool reply(void) override { return false; }
};
};  // namespace Protocol